//
//  AppMacro.h
//  Bestone
//
//  Created by mac on 15/1/11.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#ifndef LPC_AppMacro_h
#define LPC_AppMacro_h

#define BAIDU_KEY @"axIbtcmDl9MgkIp9rebVNeNo"
#define AppVersion @"1.0"

#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]
#define RETURN_OK 1000
#define RESULT_NOT_EXIST 2004

#ifdef DEBUG
#define debugLog(...) NSLog(__VA_ARGS__)
#define debugMethod() NSLog(@"%s", __func__)
#else
#define debugLog(...)
#define debugMethod()
#endif

#define FORMAT_DECIMAL_0 @"%.0f"
#define FORMAT_DECIMAL_2 @"%.2f"
#define FORMAT_DECIMAL_1 @"%.1f"
#define FORMAT_DECIMAL_0_PERCENT @"%.0f%%"
#define FORMAT_DECIMAL_1_PERCENT @"%.1f%%"
#define FORMAT_DECIMAL_2_PERCENT @"%.2f%%"

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)

#define LPC_PAGE_SIZE 20

#define MESSAGE_RELOAD_PERFORMANCE @"MESSAGE_RELOAD_PERFORMANCE"
#define MESSAGE_RELOAD_INCENTIVE @"MESSAGE_RELOAD_INCENTIVE"
#define MESSAGE_RELOAD_SELF_STOCK @"MESSAGE_RELOAD_SELF_STOCK"
#define MESSAGE_RELOAD_VALUATE @"MESSAGE_RELOAD_VALUATE"
#define MESSAGE_RELOAD_MERGE_COMPANY @"MESSAGE_RELOAD_MERGE_COMPANY"
#define MESSAGE_RELOAD_INDUSTRY_INF @"MESSAGE_RELOAD_INDUSTRY_INF"
#define MESSAGE_RELOAD_URL_INF @"MESSAGE_RELOAD_URL_INF"
#define MESSAGE_DO_VALUATE @"MESSAGE_DO_VALUATE"
#define MESSAGE_RELOAD_STOCK_MESSAGE @"MESSAGE_RELOAD_STOCK_MESSAGE"
#define MESSAGE_RELOAD_INDUSTRY_MESSAGE @"MESSAGE_RELOAD_INDUSTRY_MESSAGE"
#define MESSAGE_RELOAD_NOTE @"MESSAGE_RELOAD_NOTE"
#endif
